#ifndef MEDIA_ROUTEUTIL_H_
#define MEDIA_ROUTEUTIL_H_
#include <vector>
#include <string>

using namespace std;


namespace Media{


#define WLAN0ROUTEMETRIC  101

typedef struct
{
    std::string ethName;//网卡名
    std::string dest_ip;//目的地址
    std::string mask;//子网掩码
    std::string nexthop;//下一跳（网关）
    int         metric;//路由优先级
} RouteItem;

class RouteUtil{
public:
	bool AddRouteItem(const RouteItem &item, int isDefGateway = 0, int metric = 0);
	bool DelRouteItem(const RouteItem &item);
	bool GetRouteTabel(const string target, vector<RouteItem> &routeTable);
	
};

}
#endif
